﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MainMaster.Master" AutoEventWireup="true" CodeBehind="Search.aspx.cs" Inherits="财会系.Search" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="MainBaseCss">
        <div class="MainRight2">
            <div class="MainRightTop">
                <a href="Index.aspx">首页</a>&nbsp;&nbsp;·&nbsp;&nbsp;<a href="Search.aspx"><asp:Label ID="lblSiteMap"
                    runat="server" Text="Label"></asp:Label></a>
            </div>
            <div class="MainRightMid2">
                <a href="Search.aspx">
                    <asp:Label CssClass="h3" ID="lblSubNavShowName1" runat="server" Text="Label"></asp:Label></a>
                <div class="Right_HrDiv">
                    <hr class="Right_Hr" />
                </div>
                <div style="float: left;">
                    <asp:GridView ID="GVSearch" runat="server" AutoGenerateColumns="False"
                        ShowHeader="False" OnPageIndexChanging="GVSearch_PageIndexChanging" OnRowDataBound="GVSearch_RowDataBound"
                        AllowPaging="True">
                        <Columns>
                            <asp:TemplateField HeaderText="标题">
                                <ItemTemplate>
                                    <div class="DataTitleCss2">
                                        <asp:LinkButton ID="LinkButton2" runat="server" OnClick="LinkButton2_Click">
                                            <img src="../images/blackblock.png" alt="" />
                                            <%#Eval("Title")%>
                                            <asp:Label ID="lblId" runat="server" Text='<%#Eval("Id") %>' Visible="false"></asp:Label>
                                            <asp:Label ID="lblNavId" runat="server" Text='<%#Eval("NavId") %>' Visible="false"></asp:Label>
                                        </asp:LinkButton>
                                    </div>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="发布日期">
                                <ItemTemplate>
                                    <div class="DataTimeCss2">
                                        【<%#Eval("DateTime")%>】
                                    </div>
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                        <PagerTemplate>
                            <ul class="PagerTemplateTable2">
                                <li>
                                    <asp:LinkButton ID="linkButton8" CssClass="lbl" runat="server" CommandArgument="first"
                                        CommandName="Page" Enabled="<%#((GridView)Container.NamingContainer).PageIndex != 0 %>">首&nbsp;&nbsp;&nbsp;&nbsp;页</asp:LinkButton>

                                </li>
                                <li>丨</li>
                                <li>
                                    <asp:LinkButton ID="linkButton7" CssClass="lbl" runat="server" CommandArgument="Prev"
                                        CommandName="Page" Enabled="<%#((GridView)Container.NamingContainer).PageIndex!=0 %>">上一页</asp:LinkButton>

                                </li>
                                <li>丨</li>
                                <li>
                                    <span>当前</span>
                                    <asp:Label ID="label2" runat="server" CssClass="number" Font-Size="Small"><%#((GridView)Container.NamingContainer).PageIndex+1 %></asp:Label>
                                    <span>页</span>
                                </li>
                                <li>
                                    <span>共</span>
                                    <asp:Label ID="label1" runat="server" CssClass="number" Font-Size="Small"><%#((GridView)Container.NamingContainer).PageCount %></asp:Label>
                                    <span>页</span>
                                </li>
                                <li>丨</li>
                                <li>
                                    <asp:LinkButton ID="linkButton6" CssClass="lbl" runat="server" CommandArgument="Next"
                                        CommandName="Page" Enabled="<%#((GridView)Container.NamingContainer).PageIndex!=((GridView)Container.NamingContainer).PageCount-1 %>">下一页</asp:LinkButton>
                                </li>
                                <li>丨</li>
                                <li>
                                    <asp:LinkButton ID="linkButton3" CssClass="lbl" runat="server" CommandArgument="last"
                                        CommandName="Page" Enabled="<%# ((GridView)Container.NamingContainer).PageIndex != ((GridView)Container.NamingContainer).PageCount - 1 %>">页&nbsp;&nbsp;&nbsp;尾</asp:LinkButton>
                                </li>
                            </ul>
                        </PagerTemplate>
                    </asp:GridView>
                </div>
            </div>
        </div>
    </div>
</asp:Content>
